Leat\Domain\Services\SpendRulesService S

Total Complexity 40
Dependencies 7
Dependents 12
Total lines 339
Lines of code 154
Logical lines of code 98
Comment lines 115
Methods 14
Properties 2

Methods 14

Method Rating Maintainability Complexity Lines of code
create_coupon_for_spend_rule()
B
38 15 72
get_rules_for_contact()
S
53 7 23
get_coupons_by_user_id()
S
55 5 20
get_discount_type()
S
67 3 8
__construct()
S
76 1 4
get_spend_rules_by_type()
S
79 1 3
get_by_id()
S
80 1 3
get_by_uuid()
S
80 1 3
get_rules()
S
80 1 3
get_spend_rule_by_leat_uuid()
S
80 1 3
create_or_update()
S
80 1 3
delete_spend_rule_by_leat_uuid()
S
81 1 3
get_applicable_spend_rule()
S
80 1 3
create_or_update_spend_rule_from_reward()
S
80 1 3